// 工作流节点接口
export interface WorkflowNode {
  name: string;
  status: 'pending' | 'processing' | 'completed';
  processor?: string;
  processTime?: string;
  result?: string;
}

// 工作流数据接口
export interface WorkflowData {
  nodes: WorkflowNode[];
  currentNode: number;
}

// 项目取消信息接口
export interface CancellationInfo {
  projectId: string;
  projectName: string;
  approvalOpinion: string;
  changeType: string;
  changeReason: string;
  technicalUnitImpact: string;
  cancellationReason: string;
  attachments: Attachment[];
}

// 附件接口
export interface Attachment {
  id: string;
  name: string;
  size: number;
  type: string;
  url: string;
}

// 表单组件Props接口
export interface CancellationFormProps {
  cancellationInfo: CancellationInfo;
  onChange: (values: Partial<CancellationInfo>) => void;
  loading?: boolean;
}

// 工作流时间线组件Props接口
export interface WorkflowTimelineProps {
  workflow: WorkflowData;
}

// 主页面状态接口
export interface PageState {
  cancellationInfo: CancellationInfo;
  workflow: WorkflowData;
  loading: boolean;
  activeTab: string;
}

// API响应接口
export interface ApiResponse<T = any> {
  success: boolean;
  data?: T;
  message?: string;
} 